import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

public class Lastday {
    public static void main(String[] args) throws ParseException {
        Calendar a=Calendar.getInstance();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        a.set(2012,11,21);
        String dstr="2012-12-21 00:00:00 ";
        java.util.Date date=sdf.parse(dstr);
        long s1=date.getTime();
        long s2=System.currentTimeMillis();
        int day= (int) ((s2-s1)/1000/60/60/24);
        System.out.println(a.getTime());
        System.out.println("世界末日已经过去了"+day+"天。");
    }
}
